﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Engine.Transactions.*;
    import Classes.orders.*;

    public class TDeclineVisitorHelp extends Transaction {

        private var m_visitorHelpOrder:VisitorHelpOrder;

        public function TDeclineVisitorHelp(_arg1:VisitorHelpOrder){
            this.m_visitorHelpOrder = _arg1;
            this.m_visitorHelpOrder.setState(OrderStates.DENIED);
            Global.world.orderMgr.removeOrder(this.m_visitorHelpOrder);
            super();
        }
        override public function perform():void{
            signedCall("VisitorService.declineHelp", this.m_visitorHelpOrder.getParams());
        }

    }
}//package Transactions 
